#include <iostream>

using namespace std;

int returntime()
{
    static size_t cnt = 0;
    return cnt++;
}
int main()
{
    for (int i = 0; i < 10; ++i)
    cout << returntime() << endl;
    return 0;
}
